/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package listener;

import hiberengine.MyQuery;

/**
 *
 * @author Alexx
 */
public class ForProxyFactorry {
    
    public static MyListener getInstance(String str)
    {
        MyListener myListener = null;
        if(str.equals("hand"))
        {
            myListener = new MyrealListener();
        }
        if (str.equals("hiber")){
            myListener = new MyQuery();
        }
        return myListener;
    }
    
}
